<?php
session_start();
include("../class/config.php");
include ("../class/cls_admin.php");


if (isset($_POST['Login'])){
	$uName=trim($_POST['txtuname']);
	$pWord=trim($_POST['txtpword']);
	$objAdmin->loginCheck($uName,$pWord);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;  charset=UTF-8" />
<title><?php echo $LICENCE;?></title>
<script type="text/javascript" src="../lib/adminValidation.js"></script>
<style>
body{
margin:0px;
padding:0px;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
color:#666677;
background:url(../images/admin/body_bg.gif) repeat;

}
.head1 {
	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-size: 36px;
	color: #666666;
}
.bdr_grey {
	border-bottom:1px solid #CCCCCC;
	
}
.loginBdr {
	border:1px solid #CCCCCC;
	border-bottom:4px solid #bbbbbb;	
	background:url(../images/admin/bg_loginbox.jpg) repeat-x;
}
.txtbox {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	width: 221px;
	background: url(../images/admin/bg_txtbox.jpg) no-repeat;
	color : #555;
	height:20px;
	border:0;
	padding:4px 8px;
	margin-bottom:0px;
}
.btn{ background:url(../images/admin/btn_bg.gif) repeat-x; color:#444; border:#CCCCCC solid 1px; padding:2px 7px;}

a.developed{
color:#000000;
}
.topHolder{ text-align:center; padding:10px; }
.footerWrapper{background-color:#d01f55; padding:5px; text-align:center; color:#fff;
border-top:4px  solid #111111;}
.txtalert1 {
	color: #009900;
	font-size: 16px;
	font-weight: bold;
	
	background-image: url(../icons-img/right2.gif);
	background-repeat: no-repeat;
	background-position: left center;
	padding-left:30px;
	height:30px;
	text-decoration:blink;
}
.txtalert2 {
	color: #F65D32;
	font-size: 16px;
	font-weight: bold;
	background-image: url(../icons-img/cross2.gif);
	background-repeat: no-repeat;
	background-position: left center;
	padding-left:30px;
	height:30px;
	text-decoration:blink;
}
.txt_small{ padding:10px;}
</style>
</head>
<body>
<div class="topHolder"><br />
<img src="../images/logo.png" alt="s advanture" /></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class=""><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="40" align="center"><?php 
		/*if($suc_msg!="")
			{
		?>
		<span class="txtalert1"><?php echo $suc_msg;?></span>
		<?php
		}
		else if($err_msg!="")
			{
		?>
        <span class="txtalert2"><?php echo $err_msg;?></span>
		<?php
			}*/
		?>	</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td width="25%">&nbsp;</td>
        <td class="loginBdr"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          
          <tr>
            <td width="30%" valign="bottom">&nbsp; </td>
            <td valign="bottom">&nbsp;		   	    </td>
            </tr>
          <tr>
            <td colspan="2">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr bgcolor="#FFFFFF">
                  <td width="35%" height="150"><div align="center"><img src="../images/admin/lock.jpg" /></div></td>
                      <td> <form action="" method="post" name="loginForm" onsubmit="return loginCheck()">
                        <table width="100%" border="0" cellspacing="2" cellpadding="0">
                          <tr>
                            <td width="25%">&nbsp;</td>
                              <td width="5%">&nbsp;</td>
                              <td>&nbsp;</td>
                          </tr>
                          <tr>
                            <td align="right"><strong>Login ID </strong></td>
                              <td>&nbsp;</td>
                              <td><input name="txtuname" type="text" class="txtbox" maxlength="100"  /></td>
                          </tr>
                          <tr>
                            <td align="right"><strong>Password</strong></td>
                              <td>&nbsp;</td>
                              <td><input name="txtpword" type="password" class="txtbox" maxlength="25" /></td>
                          </tr>
                          <tr class="spacer">
                            <td>&nbsp;</td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                          </tr>
                          <tr>
                            <td>&nbsp;</td>
                              <td>&nbsp;</td>
                              <td><input type="submit" name="Login" value="Login " class="btn" />&nbsp;<input type="button" name="Cancel" value="Cancel " class="btn" /></td>
                          </tr>
                          <tr>
                            <td>&nbsp;</td>
                              <td class="txt_small">&nbsp;</td>
                              <td class="txt_small">&nbsp;</td>
                          </tr>
                        </table>
                      </form></td>
                    </tr>
              </table>             </td>
          </tr>
          
        </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td bgcolor="#FFFFFF">&nbsp;</td>
            </tr>
          </table></td>
        <td width="25%">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="80"><div align="justify" style="color:#000000"><strong>Notice</strong>: This site is meant to be accessed and used by authorized users only. If you have reached this page by other referral sites or search engines but are not the authorized user, please leave immediately.<br />
        &nbsp;<hr/></div></td>
        <td>&nbsp;</td>
      </tr>
      
    </table></td>
  </tr>
  
</table>
  </div>
<div class="footerWrapper"><?php include("../includes/inc_adminfoot.php");?></div>
</div>
</body>
</html>